projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bdbcdc8
)
usbtty: init endpoints prior to startup events
author
Stefan Herbrechtsmeier
<
[email protected]
>
Mon, 17 Oct 2011 15:22:49 +0000
(17:22 +0200)
committer
Remy Bohmer
<
[email protected]
>
Sun, 11 Dec 2011 13:42:00 +0000
(14:42 +0100)
On some usb device controllers (pxa) the endpoint configuration must be programmed prior to enable it.
Signed-off-by: Stefan Herbrechtsmeier <
[email protected]
>
CC: Marek Vasut <
[email protected]
>
CC: Remy Bohmer <
[email protected]
>
drivers/serial/usbtty.c
patch
|
blob
|
history
diff --git
a/drivers/serial/usbtty.c
b/drivers/serial/usbtty.c
index cffd5a2b25259d5018274b7144dec6ed40c34acc..e2e87fef6936619eaeecac0abc256467cf1b6b6d 100644
(file)
--- a/
drivers/serial/usbtty.c
+++ b/
drivers/serial/usbtty.c
@@
-554,11
+554,11
@@
int drv_usbtty_init (void)
usbtty_init_strings ();
usbtty_init_instances ();
+ usbtty_init_endpoints ();
+
udc_startup_events (device_instance);/* Enable dev, init udc pointers */
udc_connect (); /* Enable pullup for host detection */
- usbtty_init_endpoints ();
-
/* Device initialization */
memset (&usbttydev, 0, sizeof (usbttydev));